﻿using BonjourQuotation.UI.Models.BaseModel;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.WebPages.Html;

namespace BonjourQuotation.UI.Models.SetupModel
{
    public class SetupCardsGridViewModel : UserAllPermissionsViewModel
    {
        public List<SetupCardsGridRowViewModel> Rows { get; set; }
        public List<SelectListItem> CardType { get; set; }
        [DisplayName("Type:")]
        public string SelectedCardTypeIDText { get; set; }
        public string SelectedCardTypeID { get; set; }
        [DisplayName("Number:")]
        public string CardNumberText { get; set; }
        [DisplayName("Name:")]
        public string PlaceHolderNameText { get; set; }
        [DisplayName("Active:")]
        public List<SelectListItem> ActiveSearch { get; set; }
        public bool? IsActiveSearch { get; set; }
        public int CardID { get; set; }
        public bool IsDelete { get; set; }
        public int PageNum { get; set; }
        public bool IsSearch { get; set; }
        public bool IsCanView { get; set; }
        public string Message { get; set; }
    }
    public class SetupCardsGridRowViewModel
    {
        public int CardID { get; set; }
        [DisplayName("Credit Card Type:")]
        public string CardTypeID { get; set; }
        [DisplayName("Credit Card Number:")]
        public string CardNumber { get; set; }
        [DisplayName("Card Holder Name:")]
        public string PlaceHolderName { get; set; }
        [DisplayName("Valid From:")]
        public string CardValidFromDate { get; set; }
        [DisplayName("Exp. Date:")]
        public string CardValidToDate { get; set; }
        [DisplayName("Active:")]
        public bool IsActive { get; set; }
        public string Message { get; set; }
    }
}